package old.gjp.domain;

/**
 * @author DingZhenYun
 * @create 2019-03-22 10:35
 */
public class ZhangWu {
    private int zwid;
    private String flname;
    private double money;
    private String zhanghu;
    private String createtime;
    private String description;

    public ZhangWu() {
    }

    public ZhangWu(int zwid, String flname, double money, String zhanghu, String createtime, String description) {
        this.zwid = zwid;
        this.flname = flname;
        this.money = money;
        this.zhanghu = zhanghu;
        this.createtime = createtime;
        this.description = description;
    }

    @Override
    public String toString() {
        return "ZhangWu{" +
                "zwid=" + zwid +
                ", flname='" + flname + '\'' +
                ", money=" + money +
                ", zhanghu='" + zhanghu + '\'' +
                ", createtime='" + createtime + '\'' +
                ", description='" + description + '\'' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        ZhangWu zhangWu = (ZhangWu) o;

        if (zwid != zhangWu.zwid) return false;
        if (Double.compare(zhangWu.money, money) != 0) return false;
        if (flname != null ? !flname.equals(zhangWu.flname) : zhangWu.flname != null) return false;
        if (zhanghu != null ? !zhanghu.equals(zhangWu.zhanghu) : zhangWu.zhanghu != null) return false;
        if (createtime != null ? !createtime.equals(zhangWu.createtime) : zhangWu.createtime != null) return false;
        return description != null ? description.equals(zhangWu.description) : zhangWu.description == null;
    }

    @Override
    public int hashCode() {
        int result;
        long temp;
        result = zwid;
        result = 31 * result + (flname != null ? flname.hashCode() : 0);
        temp = Double.doubleToLongBits(money);
        result = 31 * result + (int) (temp ^ (temp >>> 32));
        result = 31 * result + (zhanghu != null ? zhanghu.hashCode() : 0);
        result = 31 * result + (createtime != null ? createtime.hashCode() : 0);
        result = 31 * result + (description != null ? description.hashCode() : 0);
        return result;
    }

    public int getZwid() {
        return zwid;
    }

    public void setZwid(int zwid) {
        this.zwid = zwid;
    }

    public String getFlname() {
        return flname;
    }

    public void setFlname(String flname) {
        this.flname = flname;
    }

    public double getMoney() {
        return money;
    }

    public void setMoney(double money) {
        this.money = money;
    }

    public String getZhanghu() {
        return zhanghu;
    }

    public void setZhanghu(String zhanghu) {
        this.zhanghu = zhanghu;
    }

    public String getCreatetime() {
        return createtime;
    }

    public void setCreatetime(String createtime) {
        this.createtime = createtime;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }
}
